package com.crm.model;

import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * @author <a href="mailto:huang0510@hotmail.com">HuangHuang</a>
 * @version $Id$
 * @hibernate.class table="PROCESSES"
 */
public class Process implements Serializable {

    private String id;
    private String contactId;
    private int stepNum;
    private String isHandle;
    private String serialNum;
    private String communeTime;
    private String remindDate;
    private String communeWay;
    private String communeResult;
    private String conclusion;
    private String comment;
    private User user;
    private Customer customer;

    public Process() {
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setContactId(String contactId) {
        this.contactId = contactId;
    }

    public void setStepNum(int stepNum) {
        this.stepNum = stepNum;
    }

    public void setIsHandle(String isHandle) {
        this.isHandle = isHandle;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public void setCommuneTime(String communeTime) {
        this.communeTime = communeTime;
    }

    public void setRemindDate(String remindDate) {
        this.remindDate = remindDate;
    }

    public void setCommuneWay(String communeWay) {
        this.communeWay = communeWay;
    }

    public void setCommuneResult(String communeResult) {
        this.communeResult = communeResult;
    }

    public void setConclusion(String conclusion) {
        this.conclusion = conclusion;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getId() {
        return id;
    }

    public String getContactId() {
        return contactId;
    }

    public int getStepNum() {
        return stepNum;
    }

    public String getIsHandle() {
        return isHandle;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public String getCommuneTime() {
        return communeTime;
    }

    public String getRemindDate() {
        return remindDate;
    }

    public String getCommuneWay() {
        return communeWay;
    }

    public String getCommuneResult() {
        return communeResult;
    }

    public String getConclusion() {
        return conclusion;
    }

    public String getComment() {
        return comment;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public String toString() {
        return new ToStringBuilder(this)
                .append("id", getId())
                .append("contactId", getContactId())
                .append("serialNum", getSerialNum())
                .append("communeTime", getCommuneTime())
                .append("remindDate", getRemindDate())
                .append("communeWay", getCommuneWay())
                .append("communeResult", getCommuneResult())
                .append("conclusion", getConclusion())
                .append("user", getUser().toString())
                .append("isHandle", getIsHandle())
                .append("stepNum", getStepNum())
                .append("comment", getComment())
                .append("customer", getCustomer())
                .toString();
    }

}
